CC = gcc
CFLAGS = -Wall -Wextra -O2
LDFLAGS = -lpthread -lcrypto

all: server client

server: server.c common.c common.h
	$(CC) $(CFLAGS) -o server server.c common.c $(LDFLAGS)

client: client.c common.c common.h
	$(CC) $(CFLAGS) -o client client.c common.c $(LDFLAGS)

clean:
	rm -f server client *.part *.download
